#!/usr/bin/env bash

confFileStr=`ls | grep -e '.yaml'`

confFileArr=($confFileStr)
numOfConf=${#confFileArr[@]}

if [ $numOfConf -gt 1  -o $numOfConf = 0 ]; then
    echo -e "must have a default config yaml"
    exit 1
fi

echo "starting services with $confFileStr"
docker-compose -f $confFileStr down --volumes